package com.bluesky.comm;

public class BusinessException extends RuntimeException{

    private String code;

    /**
     *
     * @param code 错误编码
     * @param msg  错误提示
     */
    public BusinessException(String code,String msg){
        super(msg);
        this.code = code;
    }

    public BusinessException(String code,String msg,Throwable cause){
        super(msg,cause);
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
